package com.unicom.priceboard.thread;

import java.io.File;

import com.unicom.priceboard.data.OpenPriceParser;

/**
 * used for parsing OpenPrice.xml in a routine
 * Creation date : 2008-08-07
 * @author Viet Nga
 */
public class OpenPriceTrigger {
	private String pathxml = "";
	
	public OpenPriceTrigger(String dataPath,int time) {
		this.pathxml = dataPath;
	}
	
	public void readFile() {
			try {
				File f = new File(pathxml);
				if(f.exists()) {
					OpenPriceParser OpenPrice = new OpenPriceParser();
					OpenPrice.parseDocument(pathxml);
				}
			}catch(Exception ex) {
				ex.printStackTrace();
			}

	}

}
